#ifndef __SYSDataFasong_H
#define __SYSDataFasong_H

#include "stm32f10x.h"


#define  ToByte(x)              ((x)&0xff)

typedef struct
{
	uint32_t AlarmFlag;
	uint32_t Alarm2Flag;
	uint32_t Alarm3Flag;
	uint32_t AlarmAFlag;
	uint32_t AlarmA0Flag;
	uint32_t AlarmA2Flag;
	uint32_t AlarmA3Flag;
	uint8_t  Data[48][8];
}NowAlarm_ST;

typedef struct
{
	uint16_t AlarmFlag[5];
	uint16_t Alarm2Flag[5];
	uint16_t Alarm3Flag[5];
	uint8_t  Data[80][8];
}NowPCSAlarm_ST;


extern  NowAlarm_ST    NowAlarm;

extern  NowPCSAlarm_ST    NowPCSAlarm;



void SenddataToEMS(u8 num);
u8  SendCMDToBMU(void);
#endif



